package com.bootdo.system.service.impl;

import com.bootdo.system.dao.WhiteListDao;
import com.bootdo.system.service.WhiteListService;
import com.smart.domain.WhiteListDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class WhiteListServiceImpl implements WhiteListService {
	@Autowired
	private WhiteListDao whiteListDao;
	
	@Override
	public WhiteListDO get(Integer id){
		return whiteListDao.get(id);
	}

	public List<WhiteListDO> getIp(String ip){
		return whiteListDao.getIp(ip);
	}

	@Override
	public List<WhiteListDO> list(Map<String, Object> map){
		return whiteListDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return whiteListDao.count(map);
	}
	
	@Override
	public int save(WhiteListDO whiteList){
		return whiteListDao.save(whiteList);
	}
	
	@Override
	public int update(WhiteListDO whiteList){
		return whiteListDao.update(whiteList);
	}
	
	@Override
	public int remove(Integer id){
		return whiteListDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return whiteListDao.batchRemove(ids);
	}
	
}
